import requests
import pymongo

client = pymongo.MongoClient(host='192.168.231.133', port=27017)

url = f'https://cdn.ptpress.cn/uploadimg/Material/978-7-115-53619-8/72jpg/53619.jpg'
response = requests.get(url)
print(response)
datas = response.content
# print(datas)
with open("image/1.jpg", "wb") as f:
    img = f.write(datas)

